home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- SPLASH=false
- VERBOSE=true
-
- for x in $(cat /proc/cmdline); do
- case $x in
- splash*)
- SPLASH=true;
- ;;
- nosplash*)
- SPLASH=false;
- ;;
- esac
- done
-
- [ "$SPLASH" != "true" ] || pidof usplash >/dev/null && exit 1
-
- # Clean up the console before we switch to it, to avoid text flicker:
- if [ -x /usr/bin/tput ]; then
- tput -Tlinux reset > /dev/tty8
- fi
-
- # Run usplash, switching to vt8
- /sbin/usplash -p -c -d --background --pidfile /var/run/usplash_down.pid
-
- # Append our PID to the list of processes that sendsigs won't kill,
- # to avoid flicker on shutdown:
- cat /var/run/usplash_down.pid >> /var/run/sendsigs.omit
-
- # Just because, tidyness is next to... Something or other:
- exit 0
-